import { get, post, put } from '../request'

// 用户相关接口
export const userApi = {
  login: (data) => post('/user/login', data),
  getUserInfo: () => get('/user/info'),
  updateUserInfo: (data) => put('/user/info', data)
}

export default userApi 